import type { AppRouteModule } from '/@/router/types';

import { HOME_LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
// const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
const route: AppRouteModule = {
  path: '/home-flight',
  name: 'HomeFlight',
  component: HOME_LAYOUT,
  redirect: '/home-flight/run-monitor',
  meta: {
    orderNo: 5000,
    icon: 'tabler:chart-dots',
    title: t('routes.home.flight.info'),
  },
  children: [
    {
      path: 'run-monitor',
      name: 'HomeFlightRunMonitor',
      redirect: '/home-flight/run-monitor/run-summary',
      meta: {
        title: t('routes.home.flight.runMonitor'),
        // hideMenu: true,
      },
      children: [
        {
          path: 'run-summary',
          name: 'HomeFlightRunSummary',
          component: () => import('/A/home/views/flight/run-summary.vue'),
          meta: {
            title: t('routes.home.flight.runSummary'),
            // hideMenu: true,
          },
        },
      ],
    },
    {
      path: 'flight-dynamic',
      name: 'HomeFlightDynamic',
      redirect: '/home-flight/flight-dynamic/airport',
      meta: {
        title: t('routes.home.flight.flightDynamic'),
      },
      children: [
        {
          path: 'airport',
          name: 'HomeFlightAirport',
          component: () => import('/A/home/views/flight/airport.vue'),
          meta: {
            title: t('routes.home.flight.airport'),
            // hideMenu: true,
          },
        },
      ],
    },
  ],
};

export default route;
